package icu.sehnen.mapper;

import icu.sehnen.model.NewsModel;

import java.util.List;

public interface NewsMapper {
    List<NewsModel> findAll(String query);

    void add(NewsModel newsModel);

    void update(NewsModel newsModel);

    NewsModel find(Long id);

   int delete(Long id);
}
